#!/usr/bin/env bash
#
#

ip addr |grep 172.30.1.232
arg=$?
if [ $arg -ne 0 ];then
    /usr/local/mysql/bin/mysqldump -h"172.30.1.232" -udev -pdev2018918 -x bestarmedia_node node_cloud_download  >/tmp/tmp_vod.sql
    mysql -h127.0.0.1 -udev -pdev2018918 bestarmedia_node </tmp/tmp_vod.sql
fi
